const path = require("path");

module.exports = {
	"extends": [
		"tslint:recommended",
		"tslint-config-prettier"
	],
	"rulesDirectory": [
		path.join(path.dirname(require.resolve('tslint-component-state-and-props-no-any')), 'rules')
	],
	"jsRules": { //Disable for javascript
		"object-literal-sort-keys": false
	},
	rules: {
		"class-name": true,
		"max-file-line-count": [true, 500],
		"comment-format": [true, "check-space"],
		"linebreak-style": [true, "LF"],
		"one-line": [true, "check-open-brace", "check-whitespace"],
		"no-var-keyword": true,
		semicolon: false,
		whitespace: [
			true,
			"check-branch",
			"check-decl",
			"check-operator",
			"check-module",
			"check-separator",
			"check-type"
		],
		"typedef-whitespace": [
			true,
			{
				"call-signature": "nospace",
				"index-signature": "nospace",
				parameter: "nospace",
				"property-declaration": "nospace",
				"variable-declaration": "nospace"
			}
		],
		"no-internal-module": true,
		"no-trailing-whitespace": true,
		"ordered-imports": false,
		"interface-name": false,
		"object-literal-sort-keys": false,
		"member-access": false,
		"array-type": false,
		"no-var-requires": false,
		"jsx-no-lambda": false,
		"max-classes-per-file": false,
		"no-shadowed-variable": false,
		"prefer-const": false,
		"one-variable-per-declaration": false,
		"no-console": false,
		"only-arrow-functions": false,
		"prefer-for-of": false,
		"jsx-boolean-value": false,
		"member-ordering": false,
		"ordered-imports": [
			true,
			{
			  "import-sources-order": "lowercase-last",
			  "named-imports-order": "lowercase-first"
			}
		  ],
		"no-unused-expression":[
			true,
			"allow-fast-null-checks",
			"allow-new"
		],
		"no-empty-interface":false
	}
};

Usage
在你的 tslint 配置文件，加入
{
    "extends": "tslint-config-heiban"
}